package com.dd.machine.base.net;

import android.content.Context;
import android.content.SharedPreferences;

import com.dd.machine.base.constants.UserInfoConstant;

/**
 * Created by xiao on 2015/9/17.
 */
public class RequestParams {

    public static String headerKey = "access_token";
    // 动态获取token
    public static String getHeader(Context ctx){
        SharedPreferences sp = ctx.getSharedPreferences(UserInfoConstant.USERINFO_SHREDPREFERENCE, Context.MODE_PRIVATE);
        String token  = sp.getString(UserInfoConstant.USRERINFO_SHRAREDPREFERCE_ACCESS_TOKEN, "");
        return token;
    }

}
